<?php
class Model_StudentMessageThread extends CCMIS_Model {
    //Database student_message_thread
    public function __construct(){
        parent::__construct();

        $this->load->database();
    }

    public function add($threadID, $sendListID)
    {
        $sql = 'INSERT INTO `student_message_thread`(
        `MessageThreadID`,
        `MessageThreadSendListID`
        )
        VALUES (?, ?)';

        $this->db->query($sql, array($threadID, $sendListID));

        return $this->db->insert_id();
    }

}